//
//  NearWineShopModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/29.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "NearWineShopModel.h"

@implementation NearWineShopModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.businessLicense = dict[@"businessLicense"];
        self.commitmentProtocol = dict[@"commitmentProtocol"];
        self.ID = [dict[@"id"] integerValue];
        self.latitude = [dict[@"latitude"] floatValue];
        self.longitude = [dict[@"longitude"] floatValue];
        self.placeBusiness = dict[@"placeBusiness"];
        self.portraitUrl = dict[@"portraitUrl"];
        self.shopAddressDetail = dict[@"shopAddressDetail"];
        self.shopIntroduction = dict[@"shopIntroduction"];
        self.shopName = dict[@"shopName"];
        self.shopPhone = dict[@"shopPhone"];
        self.shopPrincipalPerson = dict[@"shopPrincipalPerson"];
        self.status = [dict[@"status"] integerValue];
        self.taxRegistrationCertificate = dict[@"taxRegistrationCertificate"];
        self.userId = [dict[@"userId"] integerValue];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[NearWineShopModel alloc]initWithDict:dict];
}

@end
